package com.aos.erp.schools.service.student.imp;

import com.aos.erp.schools.mapper.student.StudentPictureMapper;
import com.aos.erp.schools.model.student.StudentPicture;
import com.aos.erp.schools.model.student.vo.picture.StudentPictureVo;
import com.aos.erp.schools.model.student.vo.picture.StudentPictureVo2;
import com.aos.erp.schools.service.student.StudentPictureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @Auther: chb
 * @Date: 2018/11/1 19:03
 * @Description:  学员资源
 */
@Service
public class StudentPictureServiceImpl extends ServiceImpl<StudentPictureMapper,StudentPicture> implements StudentPictureService{

    @Override
    public void addBean(StudentPicture studentPicture) throws Exception {
        studentPicture.setCreated(new Date());
        studentPicture.setUpdated(new Date());
        this.save(studentPicture);
    }
    @Override
    public List<StudentPictureVo> selectPicture(Long studentId) {
        return  baseMapper.selectPicture(studentId);
    }

    @Override
    public List<StudentPictureVo2> selectPicture2(Long studentId) {
        return  baseMapper.selectPicture2(studentId);
    }


}
